package com.yx.changdao.common.enums.problem;

/**
 * 上报状态 (管理员上报总控)
 */
public enum Report {

    NO(0,"未上报"),
    ASS(1,"待审核"),
    YES(2,"通过"),
    BACK(3,"打回");


    private Integer status;
    private String info;
    private Report(Integer status,String info){
        this.status=status;
        this.info=info;
    }

    public static Report info(Integer status){
        if(status.equals(0)){
            return NO;
        }else if(status.equals(1)){
            return ASS;
        }else if(status.equals(2)){
            return YES;
        }else{
            return BACK;
        }
    }

    public String n(){
        return this.info;
    }
}
